package com.act.dto;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.act.constant.ResponseEnum;

/**
 * @desc 失败响应实体
 * @author Javis
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ResponseFail extends Response {

    /* 响应失败描述 */
    private String description;

    public String getDescription() {
        return description;
    }

    public ResponseFail() {
        resultCode = ResponseEnum.FAIL.getCode();
        this.description = ResponseEnum.FAIL.getDesc();
    }

    public ResponseFail(String description) {
        resultCode = ResponseEnum.FAIL.getCode();
        this.description = description;
    }
}
